use serde::{Deserialize, Serialize};

#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct CommonResposne {
    pub msg: String,
    pub code: i64,
    pub msg_show_type: String,
    pub status: bool,
}

#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct RegisterToken {
    #[serde(flatten)]
    pub resp: CommonResposne,
    pub secrit: String,
    pub secret: String,
    pub spk: String,
}

#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct Token {
    #[serde(flatten)]
    pub resp: CommonResposne,
    pub token: String,
}
